A custom task pane is required in order to use setTimeOut and setInterval in JScript.

These two methods are the basis for creating animations in your InfoPath form.